package com.example.administrator.activity.General;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.administrator.activity.R;

public class GeneralActivity extends AppCompatActivity {
    private Button UI,ACTIVITY,Storage,contet_provider,airing,server;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_general);

        init();
        View.OnClickListener clickListener=new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                switch (v.getId()){
                    case R.id.UI:
                        UI();
                        break;
                    case R.id.ACTIVITY:
                        ACTIVITY();
                        break;
                    case R.id.Storage:
                        Storage();
                        break;
                }
            }
        };
        UI.setOnClickListener(clickListener);
        ACTIVITY.setOnClickListener(clickListener);
        Storage.setOnClickListener(clickListener);
        contet_provider.setOnClickListener(clickListener);
        airing.setOnClickListener(clickListener);
        server.setOnClickListener(clickListener);
    }

    private void Storage() {
        Intent intent=new Intent(this,GeneralStorageActivity.class);
        startActivity(intent);
    }

    private void ACTIVITY() {
        Intent intent=new Intent(this,General_activityActivity.class);
        startActivity(intent);
    }

    private void UI() {

    }

    private void init() {
        UI=findViewById(R.id.UI);
        ACTIVITY=findViewById(R.id.ACTIVITY);
        Storage=findViewById(R.id.Storage);
        contet_provider=findViewById(R.id.contet_provider);
        airing=findViewById(R.id.airing);
        server=findViewById(R.id.server);
    }
}
